﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Dictionary<int, List<Marketing>> dic = new Dictionary<int, List<Marketing>>();

            //普通活动
            if (!dic.ContainsKey(1))
                dic[1] = new List<Marketing>();
            dic[1].Add(new Marketing() { MarketingID = 1, MarketingName = "普通活动1" });
            dic[1].Add(new Marketing() { MarketingID = 1, MarketingName = "普通活动2" });

            //事件活动
            if (!dic.ContainsKey(2))
                dic[2] = new List<Marketing>();
            dic[2].Add(new Marketing() { MarketingID = 3, MarketingName = "事件活动1" });
            dic[2].Add(new Marketing() { MarketingID = 4, MarketingName = "事件活动2" });

            var marketingList = dic.Keys.Aggregate(Enumerable.Empty<Marketing>(),(t,n)=> {
                return t.Union(dic[n]);
            });
            string ss = "";
            Console.ReadKey();
        }
    }
    class Marketing
    {
        public int MarketingID { get; set; }

        public string MarketingName { get; set; }
    }
}
